<ui:composition 
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"   
	template="/template/modelo.xhtml">
		
	<ui:define name="centro">
		<c:set var="root" value="#{request.contextPath}" />			
		<p:spacer height="125px"/>
				
		<center><h:outputText value="Usuário e/ou senha inválidos!" rendered="#{param.erro}" style="color: darkred"/></center>
		
		<form action="#{root}/j_spring_security_check" method="post">
			<p:messages/>
			<p:panelGrid columns="2">  
			    <f:facet name="header">Efetuar Login</f:facet>  			  
			    <h:outputLabel value="Login" for="j_username" />  
	        	<p:inputText id="j_username" required="true" requiredMessage="Informe o login" style="width:175px;" />   	        		
	        	<h:outputLabel value="Senha" for="j_password" />          		
	        	<p:password id="j_password" required="true" requiredMessage="Informe a senha" style="width:175px;" />
	        	<h:outputText value="" />        		
	        	<input type="submit" value="Logar" />			  			    
			</p:panelGrid>  
				
		</form>					
	</ui:define>
</ui:composition>

